package com.hzlh.core.utils;


import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

public class XmlUtils {


	public static Document getDocument(String fileName) {   
		SAXReader saxReader = new SAXReader();  
		Document document = null;
		try {   
			document = saxReader.read(XmlUtils.class.getClassLoader().getResourceAsStream(fileName));
		} catch (DocumentException e) {   
			System.out.println(e.getMessage());   
		}   
		return document;
	}   
}
